package initialize

import (
	"path"

	"runtime"
)

// GetCurrentAbsolutePath 获取文件绝对路径
func GetCurrentAbsolutePath() string {
	var absPath string
	_, fileName, _, ok := runtime.Caller(2)
	if ok {
		absPath = path.Dir(fileName)
	}
	return absPath
}
